Zayd Rahman

Aspiring AWS Cloud Solutions Architect | r.zayd@icloud.com

Back to Projects

Cloud Portfolio

This site was created using serverless technologies on AWS including S3, Route53, Cloudfront CDN and ACM. The site was coded using HTML, CSS and Javascript, these files were put into an S3 bucket and enabled with static website hosting. I set up the domain name and records to point to the bucket using Route53. Lastly I created a certificate, linked it to a cloudfront distribution and updated the Route53 record to connect to that distribution for the site to be accessible.

Invalidation

After creating a cloudfront distribution and linking this to my S3 endpoint bucket, initially everything worked well. After updating my files on S3 and accessing them via cloudfront, the web page loaded with the old files. The problem was the old files were still being cached by cloudfront, this required invalidating my cloudfront distribution as shown below

When creating an Invalidation, I entered a wildcard /* to invalidate all as this forces cloudfront to get the latest files from the my S3 bucket